package cn.test.my.excel.poi;

import java.time.format.DateTimeFormatter;

/**
 * excel导入导出常量
 *
 * @author jiema
 * @since 2020/5/27 15:42
 */
@SuppressWarnings("unused")
public final class PoiConstants {

    /**
     * 附件名字
     */
    public static final String CONTENT_HEADER_VALUE = "attachment;fileName=";
    /**
     * 点
     */
    public static final String SPOT = ".";

    /**
     * 排序
     */
    public static final int SORT_NUM = 1000;

    /**
     * 单元格宽度
     */
    public static final int COLUMN_LENGTH = 4000;

    /**
     * 日期
     */
    public static final String DATE_PATTERN = "yyyy-MM-dd";

    /**
     * 时间
     */
    public static final String TIME_PATTERN = "HH:mm:ss";

    /**
     * 日期
     */
    public static final DateTimeFormatter DATE_TIME_FORMAT =
        DateTimeFormatter.ofPattern(DATE_PATTERN);

    /**
     * 时间
     */
    public static final DateTimeFormatter TIME_FORMAT = DateTimeFormatter.ofPattern(TIME_PATTERN);
}